package com.tedu;

import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.tedu.pojo.User;
import com.tedu.pojo.UserA;

public class Test1 {
	AnnotationConfigApplicationContext b=
			new AnnotationConfigApplicationContext(User.class);
	@Test
	public void a() {
		User user=(User)b.getBean("user");
		System.out.println(user);
	}
	
}